﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hollysys.Mes.ProductionManage.IRepository
{
    /// <summary>
    /// IRepository接口：(IOC注入)
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRepository<T> where T : class,new()
    {
        T Create();
        T Update(T entity); 
        T Insert(T entity);
        void Delete(T entity);
        T Find(params object[] keyValues);
        List<T> FindAll();
    }
}
